package models;

import javax.persistence.Embeddable;

@Embeddable
public class GSLinkPK
{
    public String id_group;
    public long id_structure;
    public long id_node;

    public boolean equals(Object object)
    {
	if (object instanceof GSLinkPK)
	{
	    GSLinkPK linkPK = (GSLinkPK) object;
	    boolean returnValue;
	    returnValue = id_group.equals(linkPK.id_group)
		    && id_structure == linkPK.id_structure
		    && id_node == linkPK.id_node;
	    return returnValue;
	}
	else
	{
	    return false;
	}
    }

    public int hashCode()
    {
	String hash;
	hash = id_group + String.valueOf(id_structure)
		+ String.valueOf(id_node);
	return (int) (hash).hashCode();
    }
}
